<?php session_start();
include("3.php");
echo "<markers>";
$user=$_SESSION['estado'];
$marker=0;
$registros=mysql_query("select * from google_maps where Lat!='0' and Lng!=''", $conexion) or die("Problemas en el select:".mysql_error());
while ($reg=mysql_fetch_array($registros))
{ $marker++;
echo "<marker lat='".$reg['Lat']."' lng='".$reg['Lng']."' html='
Usuario:".$reg['Nick']."
Lat:".$reg['Lat']."
Lng:".$reg['Lng']."
'  label='".$reg['Nick']."' icontype='map'/>";
}
echo "</markers>";
?>